package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TOrder;
import com.bootdo.project.dao.TOrderMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TOrderService {

	@Autowired
    private TOrderMapper tOrderMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tOrderMapper.deleteByPrimaryKey(id);
    }

    public int insert(TOrder record){
        return tOrderMapper.insert(record);
    }

    public int insertSelective(TOrder record){
        return tOrderMapper.insertSelective(record);
    }

    public TOrder selectByPrimaryKey(Long id){
        return tOrderMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TOrder record){
        return tOrderMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TOrder record){
        return tOrderMapper.updateByPrimaryKey(record);
    }

    public List<TOrder> selectByCondition(TOrder record){
        return tOrderMapper.selectByCondition(record);
    }

    public List<TOrder> selectAll(){
        return tOrderMapper.selectAll();
    }

    public List<TOrder> selectByPage(Page<TOrder> page){
        return tOrderMapper.selectByPage(page);
    }

    public Integer count(TOrder record){
        return tOrderMapper.count(record);
    }

    public int deleteByCondition(TOrder record){
        return tOrderMapper.deleteByCondition(record);
    }

}
